/*
*	$ownStyle	    系统蓝色
*	$ownStyleOpc  系统蓝色-浅色
*	$selectColor  "请选择"字体颜色
*	$borderColor  下划线颜色
*	list-img			404，查询列表为空的样式
*	submit-btn   	提交按钮的样式
*	footer-btn		底部提交+返回按钮
*	input-des			输入框内容右对齐
*	input-select-icon  选择框箭头定位
* icon-pos			返回首页
* overLoading		页面转圈圈
*/
$primaryColor: #2d8cf0;
// $ownStyle: #082AFF;
$ownStyle: #082aff;
$ownStyleOpc: #ebefff;
$btnBgcColor: #e8e8e8;
$warnCokor: #ff9900;
$successColor: #19be6b;
$errorColor: #ff0000;
$textColor: #515a6e;
$subColor: #8f8f94;
$selectColor: #767676;
$borderColor: #dcdee2;
$dividerColor: #e8eaec;
$bgcColor: #f8f8f9;
$smallFont: 12px;
$primaryFont: 14px;
$normalFont: 15px;
$maxFont: 20px;
$normalBorder: 1px solid #eeeeee;

// 标题内容+按钮
@mixin headerBtn {
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  line-height: 32px;
  font-size: 18px;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 900;
  color: #2a2a2a;
  border-radius: 8px;
  margin-bottom: 16px;
  .el-button--primary {
    padding: 8px 20px !important;
  }
  .el-button--small {
    padding: 8px 20px !important;
    border-color: #eee;
  }
}
.options-btn {
  .el-button--primary {
    padding: 8px 20px !important;
  }
  .el-button--small {
    padding: 8px 20px !important;
    border-color: #eee;
  }
}

// 标题前的竖杠
@mixin titleWrap {
  padding-bottom: 20px;
  margin-bottom: 20px;

  .title-header {
    position: relative;
    padding: 0 20px;
    height: 50px;
    line-height: 50px;
    border-bottom: $normalBorder;
    font-size: 16px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 16px;

    &::before {
      position: absolute;
      top: 50%;
      left: 0;
      transform: translateY(-50%);
      content: "";
      width: 3px;
      height: 16px;
      background-color: $ownStyle;
    }
  }
}

// padding
.list-padding {
  padding: 10px 0 10px 50px;
}

// 弹窗底部确定按钮，一个按钮
.dialog-btn {
  margin-left: 92%;
  color: #fff;
  margin-top: 16px;
}

// 底部两个按钮
.footer-btn {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

// 操作里的多个小功能div
.option-span {
  color: $ownStyle;

  > span {
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
  }
}

.homme-pad20 {
  padding: 20px;
  display: flex;
  justify-content: flex-start;
}

// 首页得查询，重置按钮样式,不换行的
.serch-btn-nowrap {
  display: inline-block;
  flex: 1;
  div {
    display: flex;
    justify-content: flex-end;
  }
}

// 首页得查询，重置按钮样式,换行的
.serch-btn {
  padding-right: 20px;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

// 首页标题
.h1-title {
  height: 28px;
  font-size: 20px;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
  color: #2a2a2a;
  line-height: 28px;
  margin: 16px 0 0px 20px;
}

// table 右上角的操作按钮
.right-btn {
  padding: 16px 0;
  margin-right: 20px;
  display: flex;
  justify-content: flex-end;
}

// 上传的样式
.avatar-uploader {
  // width: 120px;
  // border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  img {
    width: 100%;
    height: 100%;
  }
}

.avatar-uploader .el-upload:hover {
  border-color: $ownStyle;
}

.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 120px;
  height: 120px;
  line-height: 120px;
  text-align: center;
}

.avatar {
  width: 120px;
  height: 120px;
  display: block;
}

.el-upload__tip {
  color: $subColor;
}

.upload-img {
  display: inline-block;
  .img-item {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 120px;
    margin-right: 10px;
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    overflow: hidden;
    img {
      width: 100%;
      height: 100%;
      max-width: 120px;
      max-height: 120px;
    }
    i {
      position: absolute;
      top: 2px;
      right: 2px;
      cursor: pointer;
    }
  }
}

.start-flex {
  display: flex;
  justify-content: flex-start;
}

@mixin hidden-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.set-popper {
  max-width: 431px;
}

.set-content {
  cursor: default;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  word-break: break-all;
  white-space: nowrap;
}
